﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using QLZJFurnitureSCM.Model;
using QLZJFurnitureSCM.DAL;

namespace QLZJFurnitureSCM.BLL
{
    public class UserService:IBaseService<User>
    {
        private IBaseDAO<User> baseDAO = new UserDAO();

        public User UserLogin(User user)
        {
            return baseDAO.Read(user);
        }

        public User Insert(User user)
        {
            return baseDAO.Create(user);
        }

        public bool Delete(User user)
        {
            return baseDAO.Delete(user);
        }

        public List<User> FindAll()
        {
            return baseDAO.ReadAll();
        }
    }
}
